package com.imooc.sellspringcloud.server.enums;

import lombok.Getter;

/**
 * @author
 * @create 2019-07-27 22:07
 **/
@Getter
public enum OrderExceptionEnum {
    ORDER_ERROR(1,"订单信息错误"),
    ORDER_CONVER(2,"订单信息转换错误"),
    PRODUCT_NOT_EXIT(3,"商品不存在"),
    PRODUCT_STOACK(4,"商品库存不足"),
    ORDER_ITEM_NOT_EXIT(5,"订单不存在");

    private int code;
    private String message;

    OrderExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}